#ifndef _HTTP_H_
#define _HTTP_H_
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include "esp_http_client.h"
#include "cJSON.h"


//心知天气秘钥
#define WEATHER_PRIVATE_KEY "Sbn0KiIbwo9nVrP5V"


#define MAX_OUTPUT_BUFFER_LEN   1024


#define CLIENT_HTTP_RECEIVE_BIT BIT0
extern EventGroupHandle_t s_client_http_event;//此事件用于通知http接收完成

esp_err_t weather_http_init(void);
esp_err_t location_http_init(void);


#endif